using System;
using System.Collections.Generic;
using System.Text;

namespace MCMLXVII.BackEnd.Services.SystemConfiguration.Messages
{
    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class PermissionToolInfo
    {
        private int _ToolID;
        public int ToolID
        {
            get { return _ToolID; }
            set { _ToolID = value; }
        }

        private string _ToolName;
        public string ToolName
        {
            get { return _ToolName; }
            set { _ToolName = value; }
        }

        private bool _Required;

        public bool Required
        {
            get { return _Required; }
            set { _Required = value; }
        }

        public PermissionToolInfo()
        {

        }

        public PermissionToolInfo(int ToolID, string ToolName, bool Required)
        {
            _ToolID = ToolID;
            _ToolName = ToolName;
            _Required = Required;
        }
    }



    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class msgPermissionInfo
    {

        private PermissionToolInfo[] _Tools;

        public PermissionToolInfo[] Tools
        {
            get { return _Tools; }
            set { _Tools = value; }
        }

        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private string _Name;

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        public msgPermissionInfo()
        {

        }

        public msgPermissionInfo(int ID, string Name, PermissionToolInfo[] Tools)
        {
            _ID = ID;
            _Name = Name;
            _Tools = Tools;
        }    
    }
    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class msgMemberPermissionInfo
    {

        private int[] _Permissions;

        public int[] Permissions
        {
            get { return _Permissions; }
            set { _Permissions = value; }
        }

        private int _MemberID;

        public int MemberID
        {
            get { return _MemberID; }
            set { _MemberID = value; }
        }
        private int _UpdateSequence;

        public int UpdateSequence
        {
            get { return _UpdateSequence; }
            set { _UpdateSequence = value; }
        }

        public msgMemberPermissionInfo()
        {

        }

        public msgMemberPermissionInfo(int MemberID, int UpdateSequence, int[] Permissions)
        {
            _MemberID = MemberID;
            _UpdateSequence = UpdateSequence;
            _Permissions = Permissions;
        }
    }

}
